package cn.myfirefly.moming.portal.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.myfirefly.moming.portal.dao.UserSysDao;
import cn.myfirefly.moming.portal.entity.MMUserSys;

@Service
@Transactional
public class UserSysService {
	
	@Autowired
	private UserSysDao userSysDao;
	
	public void save(String sysId, Integer userSn) {
		MMUserSys userSys = new MMUserSys();
		userSys.setSysId(Integer.valueOf(sysId));
		userSys.setUserSn(userSn);
		userSysDao.save(userSys);
	}
	
	public void delete(String sysId, Integer userSn) {
		userSysDao.delete(Integer.valueOf(sysId), userSn);
	}
}
